import { MinLength,IsInt, MaxLength,Allow,Validate } from 'class-validator';

export class UserLoginModel {

}


export class PhoneLoginModel {
  @MinLength(1,{
    message: '用户登录username参数必须有'
  })
  user_Phone!: string;

  @MinLength(1,{
    message: '用户登录password参数必须有'
  })
  user_PassWord!: string;

}

export class ChangeUserFollowModel{

  @MinLength(1,{
    message: 'user_Id参数必须有'
  })
  user_Id!: number;
  @MinLength(1,{
    message: 'follow_Id参数必须有'
  })
  follow_Id!: number;

  @MinLength(1,{
    message: 'isFollow参数必须有'
  })
  isFollow!: string;

}


export class getUserData {
  @MinLength(1,{
    message: '用户user_Id参数必须有'
  })
  user_Id!: number;
  @MinLength(1,{
    message: '用户登录my_Id参数必须有'
  })
  my_Id!: number;


}

export class getUserDynamicData {
  @MinLength(1,{
    message: '用户登录user_Id参数必须有'
  })
  user_Id!: number;
  @MinLength(1,{
    message: '用户登录my_Id参数必须有'
  })
  my_Id!: number;
  @MinLength(1,{
    message: '用户登录dynaimc_Page参数必须有'
  })
  dynamic_Page!: string;

  @MinLength(1,{
    message: '用户登录dynamic_Count参数必须有'
  })
  dynamic_Count!: string;
}

export class getUserUserListData {
  @MinLength(1,{
    message: '用户登录user_Id参数必须有'
  })
  user_Id!: number;
  @MinLength(1,{
    message: '用户登录my_Id参数必须有'
  })
  my_Id!: number;
  @MinLength(1,{
    message: '用户登录dynaimc_Page参数必须有'
  })
  user_Page!: string;

  @MinLength(1,{
    message: '用户登录dynamic_Count参数必须有'
  })
  user_Count!: string;

  @MinLength(1,{
    message: '用户登录isFollowData参数必须有'
  })
  isFollowData!: string;
  
}

export class getUserLikeListModel {
  @MinLength(1,{
    message: '用户登录page参数必须有'
  })
  page!: number;
  @MinLength(1,{
    message: '用户登录count参数必须有'
  })
  count!: number;
  @MinLength(1,{
    message: '用户登录my_Id参数必须有'
  })
  my_Id!: number;
  @MinLength(1,{
    message: '用户登录reqIndex参数必须有'
  })
  reqIndex!: number;

  
}

export class updateUserDataModel {
  @MinLength(1,{
    message: 'user_NickName参数必须有'
  })
  user_NickName!: string;
  @MinLength(1,{
    message: 'user_Id参数必须有'
  })
  user_Id!: number;
  @MinLength(1,{
    message: 'user_Phone参数必须有'
  })
  user_Phone!: string;
  @MinLength(1,{
    message: 'user_PassWord参数必须有'
  })
  user_PassWord!: string;
  @MinLength(1,{
    message: 'user_Email参数必须有'
  })
  user_Email!: string;
  @MinLength(1,{
    message: 'user_Email参数必须有'
  })
  user_HeadImg!: string;

  @MinLength(1,{
    message: 'user_Email参数必须有'
  })
  user_AutoGraph!: string;

  
  
}